
import * as ActionTypes from '../constants/constants.js'
import * as util from '../util/utils.js'

export * from '../router/Home/reducers/reducers.js'
export * from '../router/Category/reducers/reducers.js'
export * from '../router/NewProduct/reducers/reducers.js'
export * from '../router/CategoryDetails/reducers/reducers.js'
export * from '../router/GoodDetails/reducers/reducers.js'
export * from '../router/Login/reducers/reducers.js'
export * from '../router/Purchasing/reducers/reducers.js'
export * from '../router/ShoppingCart/reducers/reducers.js'
export * from '../router/Address/reducers/reducers.js'
export * from '../router/EditAddress/reducers/reducers.js'
export * from '../router/SubmitOrders/reducers/reducers.js'
export * from '../router/SubmitBook/reducers/reducers.js'
export * from '../router/SubmitMagazine/reducers/reducers.js'
export * from '../router/MagazineDetails/reducers/reducers.js'
export * from '../router/OrderList/reducers/reducers.js'
export * from '../router/Magazine/reducers/reducers.js'
export * from '../router/Search/reducers/reducers.js'
export * from '../router/GoodsList/reducers/reducers.js'
export * from '../router/Spot/reducers/reducers.js'

export * from '../router/LoginState/reducers/reducers.js'
export * from '../router/Pay/reducers/reducers.js'
// export * from '../router/QrCode/reducers/reducers.js'
export * from '../router/User/reducers/reducers.js'


// 登录状态
export const shopnum = (state = util.shopnum) => {
    return state;
}

// // 登录用户信息
// export const user = (state = null, action) => {
//     switch (action.type) {
//         case ActionTypes.GET_USER_INFO:
//             return state = action.data
//         case ActionTypes.CLEAR_USER_INFO:
//             return state = action.payload
//         default:
//             return state;
//     }
// }

// // 登录微信用户信息
// export const wxUser = (state = null, action) => {
//     switch (action.type) {
//         case ActionTypes.GET_WX_USER_INFO:
//             return state = action.data
//         default:
//             return state;
//     }
// }
